<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		{{if value="$gcateData != '' "}}
		<title>{{$gcateData['ctitle']}}</title>
		<meta content="{{$gcateData['cdes']}}" name="description">
		<meta content="{{$gcateData['ckeywords']}}" name="Keywords">
		{{else}}
		<title>国美在线</title>
		<meta content="" name="description">
		<meta content="" name="Keywords">
		{{endif}}
		<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
		<link rel="stylesheet" type="text/css" href="Public/Home/css/base.css" />
		<link rel="stylesheet" type="text/css" href="Public/Home/css/list(1).css" />
		<script src="Public/Home/js/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="Public/Home/js/list.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		{{include file="VIEW_PATH/Common/header_l.php"}}
		<div class="wbox">
			<div class="local">
			<a title="首页" href="index.php">首页</a><i class="crumbarrow"> > </i>
			<a  href="{{U('List/index',array('cate_id'=>0))}}">所有分类</a>
            {{if value="is_array($currentNav)"}}
            {{foreach from="$currentNav" value="$v"}}
            <i class="crumbarrow"> > </i><a href="{{U('List/index',array('cate_id'=>$v['cate_id']))}}">{{$v['cate_name']}}</a>
            {{endforeach}}
            {{endif}}
			</div>
		</div>
		<!--nSearchWarp start-->
		<div class="nSearchWarp">
			<div class="nSearchWarp nSearch-crumb-category-results">
			    <span class="nFont14"><b class="nHeigh">{{$gcateData['cate_name']}}</b>商品筛选</span>
			    <span>共 <em id="searchTotalNumber">{{$goodsCount}}</em> 个商品</span>
			</div>
		</div>
		<!--nSearchWarp end-->
		<!--nSearchWarp start-->
		<div class="nSearchWarp nSearch-facets">
			
		{{if value="isset($brandData)"}}
		<!--当前分类下商品的品牌   开始-->
		  <div class="facets-category facets-category-common clearfix" style="height: 50px;">
		    <span class="fc-key fb">品牌：</span>
		    <div class="fc-content">
		      <div class="category-normal">
		        <ul class="category-brand clearfix" style="position: relative;">
		        	<?php 
		        		$temp=$brand_id;
		        	 ?>
		        	<li ><a {{if value="$temp==0"}} class="hover" {{endif}} href="{{U('List/index',array('cate_id'=>$_GET['cate_id'],'brand_id'=>0))}}">不限</a></li>
		        	{{foreach from="$brandData" value="$v"}}
		        	<?php $temp=$brand_id ?>
		            <li   class="c-brand">
						<a {{if value="$temp==$v['brand_id']"}}style="border:1px solid red"{{endif}} id="brandID11cY" href="{{U('List/index',array('cate_id'=>$_GET['cate_id'],'brand_id'=>$v['brand_id']))}}" title="{{$v['brand_name']}}">
							<span class="brand-img">
								<img width="100" height="30" src="{{$v['brand_logo']}}" alt="{{$v['brand_name']}}" />
							</span>
							<div class="brand-text">
								<div>{{$v['brand_name']}}</div>
							</div>
						</a>
		            </li>
		        	{{endforeach}}
		        	
		        </ul>
		      </div>
		    </div>
		  </div>
	 	<!--当前分类下商品的品牌    结束-->
	 	{{endif}}
	 	
		<!--1.当前父级下面的子集   开始-->
		  <div class="facets-category facets-category-common clearfix">
		    <span class="fc-key fb">分类：</span>
		    <div class="fc-content">
		      <div class="category-normal">
		        <ul class="clearfix">
		        	{{foreach from="$gcateDatas" key="$k" value="$v"}}
		            <li><a href="{{U('List/index',array('cate_id'=>$v['cate_id']))}}" class="emcodeProp17">{{$v['cate_name']}}   (0)</a></li>
		        	{{endforeach}}
		        	
		        </ul>
		      </div>
		    </div>
		  </div>
		  <!--当前父级下面的子集    结束-->
		  
		  <!--2.遍历当前分类下 商品属性 开始-->
		  {{if value="$goodsAttr"}}
		  {{foreach from="$goodsAttr" key="$k" value="$v"}}
		  <div class="facets-category facets-category-common clearfix">
		  	<!--右侧多选 更多-->
		    <div class="fc-option"><span class="fc-option-multiple">多选</span><span class="fc-option-more"><i></i>更多</span></div>
		    <!--左侧名字-->
		    <span class="fc-key">{{$v['name']}}：</span>
		    <!--中间内容 开始-->
		    <div class="fc-content">
		      	<div class="category-normal">
		        	<ul class="clearfix">
		        		<?php 
		        			$temp  = $param;
							$temp[$k] = 0;
		        		 ?>
		        		 <!--不限 跳转到 当前分类下-->
		        		<li><a href="{{U('List/index',array('cate_id'=>$_GET['cate_id'],'param'=>implode('_',$temp)))}}" 
		        			{{if value="$param[$k] eq 0"}}class="hover"{{endif}}>不限</a></li>
		        		
		        		{{foreach from="$v['value']" value="$value"}}
		        		
		        		<?php $temp[$k] = $value['ga_id'] ?>	        			
 <!--                   [2] => Array
                        (
                            [ga_id] => 55
                            [ga_value] => S
                            [attr_price] => 99.00
                            [goods_goods_id] => 15
                            [fattr_fa_id] => 1
                        )-->
                        
		          		<li><a href="{{U('List/index',array('cate_id'=>$_GET['cate_id'],'param'=>implode('_',$temp)))}}" 
		          			{{if value="$param[$k] eq $value['ga_id']"}}class="hover"{{endif}}>{{$value['ga_value']}}</a></li>
		          		{{endforeach}}
		        	</ul>
		      	</div>
		      <div class="fc-btn-box">
		      		<a href="javascript:void(0)" class="fc-btn-ok fc-disable">确定</a>
		      		<a href="javascript:void(0)" class="fc-btn-cancel">取消</a>
		      </div>
		    </div>
		    <!--中间内容 结束-->
		  </div>
		  {{endforeach}}
		  {{endif}}
		  <!--遍历当前分类下 商品属性 结束-->
		  
		  <div class="fccc-control-warp show">
		  	<span id="fc-common-control" class="fccc-control">更多选项（操作系统,功能特点）</span>
		  	<span id="fc-common-up" class="fccc-up">收起&nbsp;&nbsp;</span></div>
		 </div>
		<!--nSearchWarp end-->
		<!--nSearchWarp start 商品区域-->
		<div class="nSearchWarp">
			<div class="nSearchWarp-main">
				<div id="product-left" class="product-left-list">
					<!--filter-box start-->
					<div id="filter-box">
					  <div class="filter-top clearfix" id="filter-top">
					    <ul class="filter-order-box">
					      <li class="cur"><a track="筛选条件:综合" class="emcodeProp17" href="javascript:void(0)">综合</a></li>
					      <li><a track="筛选条件:销量" title="点击后销量从高到低排序" class="emcodeProp17" href="">销量</a></li>
					      <li><a track="筛选条件:新品" title="点击后恢复默认排序" class="emcodeProp17" href="">新品</a></li>
					      <li><a track="筛选条件:评价" title="点击后评价数从高到低排序" class="emcodeProp17" href="">评价</a></li>
					      <li><a track="筛选条件:价格" title="点击后价格从低到高排序" class="emcodeProp17" href="">价格</a></li>
					    </ul>
					    <ul class="filter-priceRange-box clearfix">
					      <li class="priceRange-input">
					        <input type="text" value="¥" id="fc-lowPrice">
					      </li>
					      <li class="priceRange-link">-</li>
					      <li class="priceRange-input">
					        <input type="text" value="¥" id="fc-highPrice">
					      </li>
					      <li class="priceRange-btn"><a track="筛选条件:自定义价格清理" href="javascript:void(0)" class="fc-btn-cancel emcodeProp17" id="fc-btn-cancel">清除</a></li>
					      <li class="priceRange-btn"><a track="筛选条件:自定义价格确定" href="javascript:void(0)" class="fc-btn-ok emcodeProp17" id="fc-btn-ok">确定</a></li>
					    </ul>
					    <div class="filter-resultSearch-box">
					      <input type="text" class="filter-resultSearch-input" value="在结果中搜索">
					      <a class="filter-resultSearch-btn " track="搜索结果页:在结果中搜索" href="javascript:void(0)">确定</a></div>
					    <em style="color:#f3f3f3;float:left;">S5PA040</em>
					    <div class="min-pager-box">
					        <a id="mp-next" class="emcodeProp17 min-pager-next " track="小分页:上一页" href="javascript:void(0)">&gt;</a>
					        <a id="mp-prev" class="emcodeProp17 min-pager-prev mp-disable" track="小分页:下一页" href="javascript:void(0)">&lt;</a>
					        <span class="min-pager-number"><em data-totalpagenum="216" id="mp-currentNumber" class="nHeigh">1</em>/216</span>
					    </div>
					  </div>
					</div>
					<!--filter-box end-->
					<!--product-box start-->
					<div class="product-box">
						<div id="product-waiting" class="product-waiting"></div>
						<ul id="product-box" class="product-lists clearfix">
							<!--第一个 li-->
							{{foreach from="$data" value="$v"}}
							<li class="product-item">
							  <div pid="9134047593" sid="1123040428" class="item-tab-warp">
							    <p class="item-pic">
							    	<a title="" href="{{U('Detail/index',array('cate_id'=>$v['gcategory_cate_id'],'goods_id'=>$v['goods_id']))}}" target="_blank" class="emcodeItem item-link"><img src="{{$v['list_pic']}}" alt="" width="220" height="275"></a>
							    </p>
							    <p class="item-price">
							    	<em class="fl"><b>¥</b>{{$v['shop_price']}}</em>
							    	<span class="fr"><b>¥</b>{{$v['market_price']}}</span>
							    </p>
							    <p class="item-name"><a target="_blank" title="" href="{{U('Detail/index',array('cate_id'=>$v['gcategory_cate_id'],'goods_id'=>$v['goods_id']))}}" class="emcodeItem item-link">{{$v['goods_name']}}</a></p>
							    <p class="item-comment-dispatching">
							    	<span class="dispatching">库存{{$v['goods_number']}}{{$v['unit']}}</span>
							    	<a class="comment emcodeItem" target="_blank" href="" style="display: none;">2506</a>
							    	</p>
							    <p class="item-option clearfix">
							    	<span class="add-contrast display-page-compare-checkbox emcodeProp17"></span>
							    	<span class="add-collection emcodeProp17">收藏</span>
							    	<span class="add-cart addTo-cart">加入购物车</span>
							    </p>
							  </div>
							</li>
							{{endforeach}}
							<!--第一个 li-->

						</ul>
						<!--分页 开始-->
						<div id="product-pager" class="clearfix">
							  <div id="j-page" class="pager">
							  <a href="javascript:void(0);" class="prev disable">&nbsp;上一页<s class="icon-prev"></s><i></i></a>
							  <span class="cur">1</span>
							  <a onclick="javascript:doPageNumSearch(2);return false;" href="javascript:void(0);">2</a>
							  <a onclick="javascript:doPageNumSearch(3);return false;" href="javascript:void(0);">3</a>
							  <span class="placeholder"></span>
							  <a onclick="javascript:doPageNumSearch(214);return false;" href="javascript:void(0);">214</a>
							  <a onclick="javascript:doPageNumSearch(2);return false;" href="javascript:void(0);" class="next">下一页<s class="icon-next"></s><i></i></a>
							    <label class="txt-wrap" for="pagenum">到<input type="text" value="1" bnum="214" class="txt" id="pNum">页</label>
							  <a class="btn" zdx="nBtn" href="javascript:void(0)">确定</a>
						  </div>
						</div>
						<!--分页 结束-->
					</div>
					<!--product-box end-->
				</div>
			</div>
		</div>
		<!--nSearchWarp end 商品区域-->
		{{include file="VIEW_PATH/Common/footer.php"}}
	</body>

</html>
